<SCRIPT LANGUAGE="JavaScript">

function ValidateFields()

{

if(document.frmcomponents.name.value.length == 0)

{
alert('You must enter a name');
document.frmcomponents.name.focus();
return false;
}


if(document.frmcomponents.ownerid.value.length == 0)

{
alert('You must enter a ownerid');
document.frmcomponents.ownerid.focus();
return false;
}


return true;
}
</SCRIPT>
